﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RTS
{
	class MageTower : TrainingUnitsBuilding
	{

		public MageTower(GameMain game)
			: base(game)
		{
			graphPositionOffset = new Position2D(0, -50);
			dispatchUnitsPositionOffset = new Position2D(-40, 60);
			collisionRadius = 55;
			maxLife = life = 100;

			optionsCreator = new TrainOptionsCreator(options);

			optionsCreator.AddTrainOption(typeof(MagicMan));

			DefineTextures();
		}

		private void DefineTextures()
		{
			trainingBuildingTextures = new RTSTrainingBuildingTexture(new TextureSize(210, 340));

			trainingBuildingTextures.Idle = "MageTowerSpriteSheetIDLE";
			trainingBuildingTextures.Constructing = "MageTowerSpriteSheetCONSTRUCTING";
			trainingBuildingTextures.Death = "MageTowerSpriteSheetDEATH";
			trainingBuildingTextures.Spawning = "MageTowerSpriteSheetSPAWNING";
			trainingBuildingTextures.GraphicInterface = "background for interface";
			trainingBuildingTextures.GraphicInterfaceExtended = "extended background for interface";
			trainingBuildingTextures.GraphicInterfaceOption = "button for interface";
			trainingBuildingTextures.SelectionArea = "Mage tower_selection";
			trainingBuildingTextures.LifeBar = "Mage tower_health bar life";
			trainingBuildingTextures.LifeBarBackground = "Mage tower_health bar empty";
			trainingBuildingTextures.Seleted = "Mage tower_selection circle";

			trainingBuildingTextures.AddTrainingUnit(typeof(MagicMan), "queue img for interface");
		}


	}
}
